//
//  NTModuleThirdMediator.swift
//  NTFrameworks
//
//  Created by zto_yhd on 2020/1/17.
//

import CTMediator

public extension CTMediator{
    /// 跳转到第三个模块
    /// - Parameter callback: 回调
    @objc public func jumpToModuleThird(callback:@escaping (String) -> Void) -> UIViewController? {
        let params = [
            "callback":callback,
            kCTMediatorParamsKeySwiftTargetModuleName:"ModuleThird"
            ] as [AnyHashable : Any]
        if let viewController = self.performTarget("A", action: "Extension_ViewController", params: params, shouldCacheTarget: false) as? UIViewController {
            return viewController
        }
        return nil
    }
}
